package com.zhou.controller;


import com.zhou.scheduled.TimedTasks;
import com.zhou.service.PushService;
import com.zhou.service.WeatherService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author lcz
 * @desc 测试手动推送
 * @mail lcz_0130@163.com
 * @date 2023/12/28
 */

@RestController
public class PushController {

    @Resource
    private WeatherService weatherService;
    @Resource
    private PushService pushService;
    @Resource
    private TimedTasks timedTasks;

    @GetMapping("pushTemplate")
    public void pushTemplate() {
        timedTasks.pushTemplate();
    }

    @GetMapping("pushCustom")
    public void pushCustom() {
        timedTasks.pushCustom();
    }

    @GetMapping("pushCustom2")
    public void pushCustom2() {
        timedTasks.pushCustom2();
    }

    @GetMapping("pushNews")
    public void pushNews() {
        timedTasks.pushNews();
    }

}
